package controller

import "github.com/labstack/echo"

func Route(g *echo.Group)  {
	g.GET("/version", func(context echo.Context) error {
		return context.JSON(200,map[string]string{
			"version": "v1",
		})
	})


	// 用户控制器
	user := new(UserController)
	g.POST("/login",user.Login)

}
